package com.wframe.project.former.task;

import com.wframe.project.jnd.services.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * Created by Administrator on 2017/8/7.
 */
@Component
public class OrderSendIntegralTask {
    @Autowired
    OrderService orderService;

    @RedisLock("sendIntegralTask")
    public void exectask () {
        try {
            orderService.integralSendTask(3);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
